<html>
<head>
    <title>wait.....</title>
    <script type="application/javascript" src="https://api.paygate.net/ajax/common/OpenPayAPI.js"></script>
</head>
<body>
<form name="PGIOForm">
    <input type="hidden" name="unitprice" value="${amount}">
    <input type="hidden" name="mid" value="${mid}">
    <input type="hidden" name="paymethod" value="${paymethod}">
    <input type="hidden" name="goodcurrency" value="${currency}">
    <input type="hidden" name="goodname" value="${goodname}">
    <input type="hidden" name="receipttoname" value="${receipttoname}">
    <input type="hidden" name="receipttoemail" value="${receipttoemail}">
    <input type="hidden" name="receipttotel" value="">
    <input type="hidden" name="receipttosocialnumber" value="">
    <input type="hidden" name="socialnumber" value="">
    <input type="hidden" name="carrier" value="">
    <input type="hidden" name="cardauthcode" value="">
    <input type="hidden" name="cardtype" value="">
    <input type="hidden" name="cardnumber" value="">
    <input type="hidden" name="cardsecretnumber" size="3" value="">
    <input type="hidden" name="cardexpiremonth" size="2" value="">
    <input type="hidden" name="cardexpireyear" size="4" value="">
    <input type="hidden" name="cardownernumber" size="13" value="">
    <input type="hidden" name="bankcode" value="">
    <input type="hidden" name="bankexpyear" value="">
    <input type="hidden" name="bankcode" value="">
    <input type="hidden" name="bankexpyear" value="">
    <input type="hidden" name="bankexpmonth" value="">
    <input type="hidden" name="bankexpday" value="">
    <input type="hidden" name="bankaccount" value="">
    <input type="hidden" name="org_amt" value="${amount}">
    <input type="hidden" name="currency" value="${currency}">
    <input type="hidden" name="mb_serial_no" value="${id}">
    <input type="hidden" name="tid" value="">
    <input type="hidden" name="langcode" value="CN">
    <input type="hidden" name="replycode" value="">
    <input type="hidden" name="replyMsg" value="">
    <input type="hidden" name="hashresult" value="">
</form>
<div id="PGIOscreen"></div>
</body>
<script>
    window.onload = function () {
        doTransaction(document.PGIOForm)
    }

    function getPGIOresult() {
        var replycode = document.PGIOForm.elements['replycode'].value;
        var replyMsg = document.PGIOForm.elements['replyMsg'].value;
        displayStatus(getPGIOElement('ResultScreen'));
        if (replycode === "0000") {
            document.PGIOForm.action = "/pay/result"
            document.PGIOForm.submit()
        } else {
            alert(replyMsg)
        }
    }
</script>
</html>